package org.itboys.trade.entity.mysql;

import java.util.Date;

/**
 * @author 
 *
 */

public class AdminAmountRecord {
	private static final long serialVersionUID = -9168607920527850600L;
	public static final Integer objType_center=1;
	public static final Integer objType_seller=2;
	public static final Integer objType_admin=0;//总平台时，objId=0
	public static final Integer tradeType_order=1;
	public static final Integer tradeType_commission=2;
	public static final Integer tradeType_withdraw=3;
	private Long id;
	private Long objId;  //centerId或sellerId
	private Integer objType;//1:center 2:seller
	private Integer tradeType;//1:订单收益2:佣金收益
	private Double income;//收入
	private Double expenditure;//支出
	private Long orderId;//该笔订单id
	private Integer orderType;//
	private Double totalAmount;//该笔订单总额
	private Double totalCommission;//该笔订单总佣金
	private Date createTime;
	
	public AdminAmountRecord() {
		super();
	}
	/**
	 * 
	 * @param objId
	 * @param objType
	 * @param tradeType
	 * @param income
	 * @param expenditure
	 * @param orderId
	 * @param totalAmount
	 * @param totalCommission
	 */
	public AdminAmountRecord(Long objId, Integer objType, Integer tradeType, Double income, Double expenditure,
			Long orderId,Integer orderType, Double totalAmount, Double totalCommission) {
		super();
		this.objId = objId;
		this.objType = objType;
		this.tradeType = tradeType;
		this.income = income;
		this.expenditure = expenditure;
		this.orderId = orderId;
		this.totalAmount = totalAmount;
		this.totalCommission = totalCommission;
		this.orderType=orderType;
	}
	public Long getOrderId() {
		return orderId;
	}
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	public Double getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(Double totalAmount) {
		this.totalAmount = totalAmount;
	}
	public Double getTotalCommission() {
		return totalCommission;
	}
	public void setTotalCommission(Double totalCommission) {
		this.totalCommission = totalCommission;
	}
	public Double getIncome() {
		return income;
	}
	public void setIncome(Double income) {
		this.income = income;
	}
	public Double getExpenditure() {
		return expenditure;
	}
	public void setExpenditure(Double expenditure) {
		this.expenditure = expenditure;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getObjId() {
		return objId;
	}
	public void setObjId(Long objId) {
		this.objId = objId;
	}
	public Integer getObjType() {
		return objType;
	}
	public void setObjType(Integer objType) {
		this.objType = objType;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getTradeType() {
		return tradeType;
	}
	public void setTradeType(Integer tradeType) {
		this.tradeType = tradeType;
	}
	public Integer getOrderType() {
		return orderType;
	}
	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}
	
}
